<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
/*var d = new Date(3957934909807);
console.log(d);*/
/*var d = new Date("May 25, 2017")
console.log(d);*/
/*var d = new Date(2017, 7, 7, 11, 40, 30, 300);
console.log(d);*/

var d = new Date(1000 * 366 * 24 * 60 * 60 * 1000)
console.log(d.toString());

console.log(d.toLocaleString());

d = new Date();
// 获取的表示时间的毫秒之
console.log(d.valueOf());

console.log(d.getTime());  // == valueOf()

var now = new Date();
var now1 = Date.now();
console.log(now, now1)

</script>
</body>
</html>
<!--
1. new Date()
    当前时间
    
2. new Date(year, month [, day, ...])
    创建一个指定日期的时间

-->